import {ref, Ref} from "vue"

interface MetaLeftReturn {
    left: Ref<string>
    setLeft: (rawLeft: string) => void
}

export function useMetaLeft(rawLeft: string): MetaLeftReturn {
    const left = ref<string>(rawLeft)

    function setLeft(rawLeft: string) {
        left.value = rawLeft
    }

    return {
        left,
        setLeft
    }
}